import { DEV, PROD } from "../env";

export const getApiPath = (function (options) {
  const { DEV, PROD, host, fill } = options;
  return function (path) {
    if (DEV) {
      return host + path + fill;
    } else {
      return path;
    }
    return path;
  };
})({
  DEV,
  PROD,
  host: "",
  fill: ".json",
});
